2020-2021 Sunseeker Telemetry and Lighting System
flashctl_ex1_writeToInfoB.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Macros

#define INFOB_START   (0x1900)
 

Functions

void main (void)
 

Variables

uint8_t calibration_data_char [16]
 
uint16_t calibration_data_int [8]
 
uint32_t calibration_data_long [4]
 

Macro Definition Documentation

◆ INFOB_START

#define INFOB_START   (0x1900)

Dummy calibration data is written to infoB. 16 locations are written with char data, 8 locations with int data and 4 locations with word data. LED toggles upon completion.

Check infoB location @ 0x1900 on execution of program.

Tested On: MSP430F5529

/|| | | | P1.0|-LED –|RST | | |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • Flash module
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • None.

Definition at line 63 of file flashctl_ex1_writeToInfoB.c.

Function Documentation

◆ main()

Variable Documentation

◆ calibration_data_char

uint8_t calibration_data_char[16]
Initial value:
= {0x00,
0x01,
0x02,
0x03,
0x04,
0x05,
0x06,
0x07,
0x08,
0x09,
0x10,
0x11,
0x12,
0x13,
0x14,
0x15}

Definition at line 70 of file flashctl_ex1_writeToInfoB.c.

Referenced by main().

◆ calibration_data_int

uint16_t calibration_data_int[8]
Initial value:
= {0x1617,
0x1819,
0x2021,
0x2223,
0x2425,
0x2627,
0x2829,
0x3031}

Definition at line 91 of file flashctl_ex1_writeToInfoB.c.

Referenced by main().

◆ calibration_data_long

uint32_t calibration_data_long[4]
Initial value:
= {0x35343332,
0x39383736,
0x43424140,
0x47464544}

Definition at line 104 of file flashctl_ex1_writeToInfoB.c.

Referenced by main().